﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace secuerFTP
{
    public partial class Form1 : Form
    {
        ServerConfig serverConfig;
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form StartServerForm = new Form2(serverConfig);
            StartServerForm.Show();
            this.Hide();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            /*
             * 此处之后改成读配置文件确定端口号
             */
            this.serverConfig = new ServerConfig(21, 20, 2*1024*1024, "C:\\Users\\slanyer\\Desktop");
        }
    }
}
